package com.ruoyi.buy.service;

import com.ruoyi.buy.domain.entity.PO.BuyPurchaseInvItem;
import com.ruoyi.buy.domain.entity.PO.BuyPurchaseInvoice;
import com.ruoyi.buy.domain.entity.buy0003.Buy0003AddInvAndItem;

import java.util.List;

/**
 * 发票Service接口
 * 
 * @author ruoyi
 * @date 2024-06-03
 */
public interface IBuyPurchaseInvoiceService 
{
    /**
     * 查询发票
     * 
     * @param id 发票主键
     * @return 发票
     */
    public BuyPurchaseInvoice selectBuyPurchaseInvoiceById(Long id);

    public Buy0003AddInvAndItem view(Long id);

    /**
     * 查询发票列表
     * 
     * @param buyPurchaseInvoice 发票
     * @return 发票集合
     */
    public List<BuyPurchaseInvoice> selectBuyPurchaseInvoiceList(BuyPurchaseInvoice buyPurchaseInvoice);

    /**
     * 新增发票
     * 
     * @param buyPurchaseInvoice 发票
     * @return 结果
     */
    public Buy0003AddInvAndItem insertBuyPurchaseInvoice(Buy0003AddInvAndItem para);

    /**
     * 修改发票
     * 
     * @param buyPurchaseInvoice 发票
     * @return 结果
     */
    public Buy0003AddInvAndItem updateBuyPurchaseInvoice(Buy0003AddInvAndItem para);

    /**
     * 批量删除发票
     * 
     * @param ids 需要删除的发票主键集合
     * @return 结果
     */
    public int deleteBuyPurchaseInvoiceByIds(Long[] ids);

    /**
     * 删除发票信息
     * 
     * @param id 发票主键
     * @return 结果
     */
    public int deleteBuyPurchaseInvoiceById(Long id);

    public  List<BuyPurchaseInvItem> getNotInvItem(BuyPurchaseInvItem para);

    public  int delItem(BuyPurchaseInvItem para);
}
